import request from '@/utils/request'

// 查询平台电话列表
export function listTel(query) {
  return request({
    url: '/terrace/tel/list',
    method: 'get',
    params: query
  })
}

// 查询平台电话详细
export function getTel(telId) {
  return request({
    url: '/terrace/tel/' + telId,
    method: 'get'
  })
}

// 新增平台电话
export function addTel(data) {
  return request({
    url: '/terrace/tel',
    method: 'post',
    data: data
  })
}

// 修改平台电话
export function updateTel(data) {
  return request({
    url: '/terrace/tel',
    method: 'put',
    data: data
  })
}

// 删除平台电话
export function delTel(telId) {
  return request({
    url: '/terrace/tel/' + telId,
    method: 'delete'
  })
}

// 导出平台电话
export function exportTel(query) {
  return request({
    url: '/terrace/tel/export',
    method: 'get',
    params: query
  })
}
